function sort(records){
	var items  = records.split(',');
	var item   = items[0];
	var type   = items[0].split('-');
	var tosend = type[0];
	var data   = 'records=' + records;

	var xhr    = new getXMLHttpRequest();
	xhr.open("POST", "post.php?action=" + tosend, true);
	xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xhr.send(data);
}